package servlet.listener.session;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

public class SessionBindingListener implements HttpSessionBindingListener {

    public SessionBindingListener() {
    }
    
    public void valueUnbound(HttpSessionBindingEvent event) {
    	System.out.println("valueUnbound:" + event.getSession().getId() + ",名称：" + event.getName() + ",值为：" + event.getValue());
    }

    public void valueBound(HttpSessionBindingEvent event) {
    	System.out.println("valueBound:" + event.getSession().getId() + ",名称：" + event.getName() + ",值为：" + event.getValue());
    }
	
}
